from common.common import driver

from test import signup_test
from test import signin_test
from test import private_messages_test
from test import post_interactions_test
from test import post_editing_test
from test import personal_center_test
from test import personal_homepage_test
from test import homepage_test


if __name__ == "__main__":
    # 注册
    signup_test.TestSignup().FailSignup()
    signup_test.TestSignup().Sucsignup()
    # 登录
    signin_test.TestSignin().Failsignin()
    signin_test.TestSignin().Sucsignin()
    # 个人中心
    personal_center_test.TestCenter().personal_information()
    # 个人中心测试中修改了密码，重新登录
    signin_test.TestSignin().Sucsignin()
    # 帖子
    post_editing_test.TestEditing().Failpush_post()
    post_editing_test.TestEditing().Sucpush_post()
    post_editing_test.TestEditing().Failedit_post()
    post_editing_test.TestEditing().Sucedit_post()
    # 私信
    private_messages_test.TestMessage().Failsend_message()
    private_messages_test.TestMessage().Sucsend_message()
    private_messages_test.TestMessage().Sucreply_message()
    private_messages_test.TestMessage().Failreply_message()
    # 互动
    post_interactions_test.TestInteractions().Thumbs_up()
    post_interactions_test.TestInteractions().comments()
    # 个人主页
    personal_homepage_test.TestPersonalHomepage().myhomepage()
    personal_homepage_test.TestPersonalHomepage().someone_homepage()
    # 帖子删除
    post_editing_test.TestEditing().Delete_post()
    # 主页
    homepage_test.TestHomepage().plate()
    homepage_test.TestHomepage().signout()

    driver.driver.quit()